<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  layout:decorator="layouts/layout" th:with="header='生产配盘库存', subtext='管理系统中生产配盘库存数据'" style="overflow: hidden;">

<head>
  <title>生产配盘库存</title>
</head>
<body style="overflow: hidden;">

  <th:block layout:fragment="content">
    <div id="query-area" class="box-body m-b-sm border-bottom">
      <form class="form-horizontal search-form" role="form">
        <div class="row">

          <div class="col-sm-3">
            <div class="form-group">
              <label class="control-label col-sm-3">配盘单号</label>
              <div class="col-sm-9">
                <input type="text" id="docnum" name="docnum" placeholder="输入配盘单号搜索" class="form-control" />
              </div>
            </div>
          </div>

            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-sm-3">批次</label>
                    <div class="col-sm-9">
                        <input type="text" id="lotnum" name="lotnum" placeholder="输入批次信息搜索" class="form-control" />
                    </div>
                </div>
            </div>

            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-sm-3">产线</label>
                    <div class="col-sm-9">
                        <input type="text" id="linecode" name="linecode" placeholder="输入产线信息搜索" class="form-control" />
                    </div>
                </div>
            </div>

            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-sm-3">工位</label>
                    <div class="col-sm-9">
                        <input type="text" id="uloc" name="uloc" placeholder="输入工位信息搜索" class="form-control" />
                    </div>
                </div>
            </div>

            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-sm-3">配盘点</label>
                    <div class="col-sm-9">
                        <input type="text" id="sloc" name="sloc" placeholder="输入配盘点搜索" class="form-control" />
                    </div>
                </div>
            </div>

            <div class="col-sm-3">
                <div class="form-group">
                    <label class="control-label col-sm-3">容器编码</label>
                    <div class="col-sm-9">
                        <input type="text" id="containnumber" name="containnumber" placeholder="输入容器条码搜索" class="form-control" />
                    </div>
                </div>
            </div>


      </div>


                <div class="row m-t">
                  <div class="col-lg-12 seach-button">
                    <div class="pull-right">
                      <button type="submit" id="search" class="btn btn-primary">
                        <i class="fa fa-search"></i> 搜索
                      </button>
                      <button type="reset" id="clear" class="btn btn-danger">
                        <i class="fa fa-remove"></i> 清除
                      </button>
                    </div>
                  </div>
                </div>
              </form>
            </div>

            <div class="row">
              <div class="col-lg-12">
                <div class="box">
                  <div class="box-body">
                    <h2>
                      <!--
                      <a  class="btn btn-primary btn-sm" th:href="@{|${baseUrl}/add|}" th:title="手动添加库存">
                        <i class="fa fa-fw fa-plus"></i> 添加
                      </a>
                      <a  class="btn btn-primary btn-sm" th:href="@{|${baseUrl}/hold|}" th:title="冻结库存">
                        <i class="fa fa-fw fa-plus"></i> 冻结
                      </a>

              <a  class="btn btn-primary btn-sm changelocreqAll" href="javascript:;" th:if="${@sec.authorized('__|${baseUrl}/changeloc|__')}" th:title="库位变更">
                <i class="fa fa-fw fa-tasks"></i> 库位变更
              </a>

              <a  class="btn btn-primary btn-sm" th:href="@{|${baseUrl}/count|}" th:if="${@sec.authorized('__|${baseUrl}/count|__')}" th:title="生成盘点单">
                <i class="fa fa-fw fa-plus"></i> 盘点
              </a>


                      <a  class="btn btn-primary btn-sm posttoerpAll" href="javascript:;" th:title="同步分配信息至WMS">
                          <i class="fa fa-fw fa-plus"></i> 同步至WMS
                      </a>
                       -->

                      <a  class="btn btn-primary btn-sm addtosoAll" href="javascript:;" th:if="${@sec.authorized('__|${baseUrl}/addtoso|__')}" th:title="追加到现有配盘出库单">
                          <i class="fa fa-plus"> </i>追加出库
                      </a>
                        <a  class="btn btn-info btn-sm createsoAll" href="javascript:;" th:if="${@sec.authorized('__|${baseUrl}/createso|__')}" th:title="生成配盘出库单">
                            <i class="fa fa-exchange"></i> 生成出库
                        </a>


                    <a  class="btn btn-danger btn-sm delAll" href="javascript:;" th:if="${@sec.authorized('__|${baseUrl}/del|__')}" th:title="删除库存">
                      <i class="fa fa-fw fa-trash"></i> 删除
                    </a>
                    <!--
                    <a  class="btn btn-danger btn-sm delmovereqAll" href="javascript:;" th:if="${@sec.authorized('__|${baseUrl}/delmove|__')}" th:title="删除库存并下架">
                      <i class="fa fa-fw fa-trash"></i> 销库下架
                    </a>
                    -->
              <div class="pull-right">
                <a class="btn btn-info" th:title="导入数据" th:href="@{|${baseUrl}/import|}">
                  <i class="fa fa-fw fa-cloud-upload"></i> 导入数据
                </a>
                <a class="btn btn-info export" th:title="导出数据">
                  <i class="fa fa-fw fa-cloud-upload"></i> 导出数据
                </a>
              </div>
            </h2>
            <div id="tableWrapper">
              <table id="table" class="table table-striped table-hover table-bordered table-fixed">
                  <thead style="position:sticky;top:0;z-index:10;">
                  <tr>
                      <th style="width:50px;">
                          <a href="javascript:;" class="selectAll" title="全选">全选</a>
                      </th>


                    <th style="width:70px;">来源</th>
                    <th style="width:70px;">配盘单号</th>
                    <th style="width:120px;">批次</th>
                    <th style="width:60px;">产线</th>
                    <th style="width:100px;">工位</th>
                    <th style="width:60px;">配盘点</th>
                    <th style="width:60px;">库存数量</th>
                    <th style="width:60px;">分配数量</th>
                    <th style="width:60px;">容器编码</th>
                    <th style="width:80px;">库位</th>
                    <th style="width:110px;">收货时间</th>
                    <th style="width:90px;">备注</th>
                    <th style="width:40px;">状态</th>

                  </tr>
                </thead>
                <tbody>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
    </div>


      <form id="addtosoForm" method="post" style="display: none" th:action="@{|${baseUrl}/addtoso|}">
          <input id="ids" type="hidden" name="ids" />
      </form>

      <form id="createsoForm" method="post" style="display: none" th:action="@{|${baseUrl}/createso|}">
          <input id="ids" type="hidden" name="ids" />
      </form>

    <form id="delForm" method="post" style="display: none" th:action="@{|${baseUrl}/del|}">
      <input id="ids" type="hidden" name="ids" />
    </form>

    <form id="exportForm" method="post" style="display: none" th:action="@{|${baseUrl}/export|}">
    </form>

      <!-- Modal -->
      <div class="modal fade" id="detailModal" tabindex="-1">
          <div class="modal-dialog" style="width:90%;">
              <div class="modal-content">
                  <div class="modal-header">
                      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                      <h4 class="modal-title">配盘明细</h4>
                  </div>
                  <div class="modal-body">
                      <iframe style="width: 100%; height: 450px;" frameborder="0"></iframe>
                  </div>

              </div>
          </div>
      </div>

  </th:block>
  <th:block layout:fragment="scripts">
    <script th:src="@{|${theme}/js/app/inventory/kitinv_list.js?v=${applicationVersion}|}" th:inline="javascript"></script>
  </th:block>
</body>

</html>
